DATA_ROOT := ../../dataset
TMP_ROOT := ./tmp
USER_COURSE_TMP := ../usercourse/tmp
train_enrollment_csv := $(DATA_ROOT)/enrollment_train.csv
test_enrollment_csv := $(DATA_ROOT)/test/enrollment_test.csv
train_log_csv := $(DATA_ROOT)/log_train.csv
test_log_csv := $(DATA_ROOT)/test/log_test.csv

user_course_num: ./user_course_count.py
	./user_course_count.py $(train_enrollment_csv) $(TMP_ROOT)/train.user_course_num
	./user_course_count.py $(test_enrollment_csv) $(TMP_ROOT)/test.user_course_num

user_enter_time: ./user_enter_time.py $(USER_COURSE_TMP)/train_user_course_action_time \
	$(USER_COURSE_TMP)/test_user_course_action_time
	./user_enter_time.py $(USER_COURSE_TMP)/train_user_course_action_time  overall $(TMP_ROOT)/train.user_enter_time 
	./user_enter_time.py $(USER_COURSE_TMP)/test_user_course_action_time  overall $(TMP_ROOT)/test.user_enter_time 

user_rcd_day_action_num_describe: ./user_rcd_day_action_num_describe.py $(USER_COURSE_TMP)/train_user_course_action_time \
	$(USER_COURSE_TMP)/test_user_course_action_time
	@./user_rcd_day_action_num_describe.py $(USER_COURSE_TMP)/train_user_course_action_time  overall $(TMP_ROOT)/train.user_rcd_day_action_num_describe & \
	./user_rcd_day_action_num_describe.py $(USER_COURSE_TMP)/test_user_course_action_time  overall $(TMP_ROOT)/test.user_rcd_day_action_num_describe & \
	wait
